package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_PARAM_HOLIDAYS")
@ApiModel(value = "参数-节假日配置表")
public class ParamHolidays extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "年份")
    @TableField(value = "HOLIDAY_YEAR")
    @JsonProperty(value = "holidayYear")
    private Long holidayYear;

    @ApiModelProperty(value = "日期")
    @TableField(value = "HOLIDAY_TIME")
    @JsonProperty(value = "holidayDate")
    private LocalDate holidayDate;

    @ApiModelProperty(value = "备注")
    @TableField(value = "REMARK")
    @JsonProperty(value = "remark")
    private String remark;

    @ApiModelProperty(value = "节假日类型")
    @TableField(value = "HOLIDAY_TYPE")
    @JsonProperty(value = "holidayType")
    private String holidayType;

    @ApiModelProperty(value = "关区GUID，源自H4A")
    @TableField(value = "CUSTOM_ID")


    @JsonProperty(value = "customId")
    private String customId;
}
